package com.ishopping.web.manage.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by JIM on 2016/8/13.
 * 此controller主要用于处理404错误
 * 当找不到任何页面的时候就会进入此controller
 */
public class DefaultController implements Controller {
    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
            throws Exception {
        return new ModelAndView("error/404");
    }
}
